package com.enjoyor.soa.traffic.api.dto.vcsp;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

/**
 * 一天的数据量
 * @ClassName: DayUpload
 * @Description: TODO
 * @author: Administrator
 * @date: 2019年1月14日 上午11:16:58
 */
public class DayUploadDto implements Serializable {

	private static final long serialVersionUID = 1L;

	private String day = "";
	private Map<Integer,Integer> hourcount = new HashMap();
	private long daycount = 0;
	
	
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	
	public long getDaycount() {
		return daycount;
	}
	public void setDaycount(long daycount) {
		this.daycount = daycount;
	}
	public void cleanDay() {
		hourcount = new HashMap();
		this.daycount = 0;
	}
	public void count(int hour) {
		if(this.hourcount.containsKey(hour))
			this.hourcount.put(hour, hourcount.get(hour)+1);
		else
			this.hourcount.put(hour, 1);
		this.daycount++;
		
	}
	
	
}
